<div ng-include src="tpl/public/header.html"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li>销售报表</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
      <label>时间：</label>
      从<input type="date" class="form-control" placeholder="开始日期,如2015-01-01" ng-model="searchMap.dateStart" maxlength="10" title="预约开始日期">
    </div>
    <div class="form-group">
      至<input type="date" class="form-control" placeholder="结束日期,如2015-01-01" ng-model="searchMap.dateEnd" maxlength="10" title="预约结束日期">
    </div>
    <div class="form-group">
      <select type="text" class="form-control" placeholder="服务顾问" ng-options="m.userId as m.username for m in licaishiManagerUserList" ng-model="searchMap.serviceConsultantId" style="width:200px;">
        <option value="">--选择服务顾问--</option>
      </select>
    </div>
    <button type="submit" class="btn btn-default">查询</button>
    <button type="button" class="btn btn-primary" ng-show="config.oPType!='06'" ng-click="export()">导出CSV</button>
  </form>
  <table class="table table-striped table-hover">
    <thead>
    <tr>
      <th width="70" rowspan="2">序号</th>
      <th width="70" rowspan="2">服务顾问</th>
      <th width="70" rowspan="2">名下理财师数</th>
      <th width="70" colspan="2">开单量</th>
      <th width="70" colspan="2">注册数</th>
      <th width="70" colspan="2">回访数</th>
    </tr>
    <tr>
      <th width="70">数量</th>
      <th width="70">金额(万)</th>
      <th width="70">个人来源</th>
      <th width="70">公司来源</th>
      <th width="70">已注册用户</th>
      <th width="70">线下导入名单</th>
    </tr>
    </thead>
    <tbody>
      <tr ng-repeat="li in list">
        <td width="70">{{$index+1}}</td>
        <td width="70">{{li.serviceConsultant}}</td>
        <td width="70">{{li.accountFinancialCount}}</td>
        <td width="70">{{li.orderCount}}</td>
        <td width="70">{{li.orderAmount}}</td>
        <td width="70">{{li.registerPersonCount}}</td>
        <td width="70">{{li.registerCompanyCount}}</td>
        <td width="70">{{li.visitPersonCount}}</td>
        <td width="70">{{li.visitCompanyCount}}</td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="productRegexList.length > 0"></div>
</div>
